import { CommonEntity } from '../../../dto/common.entity';
import { Column, Entity } from 'typeorm';

@Entity('timetableRecord')
export class TimetableRecord extends CommonEntity {
  @Column({
    comment: '预约时间',
    type: 'timestamp',
    nullable: true,
  })
  subscribeTime: Date;

  @Column({
    comment: '用户',
    nullable: true,
  })
  studentId: string;

  @Column({
    comment: '用户消费卡',
    nullable: true,
  })
  cardRecordId: string;

  @Column({
    comment: '课程表',
    nullable: true,
  })
  timetableId: string;

  @Column({
    comment: '课程',
    nullable: true,
  })
  courseId: string;

  @Column({
    comment: '门店',
    nullable: true,
  })
  orgId: string;
}
